package com.woniuxy.auth;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * auth实现以下功能：
 * 1.认证功能   判断账号密码是否正确，生成token返回给前端
 * 2.做鉴权   判断一个用户是否拥有指定的权限
 * 3.注册、密码修改
 *
 * */
@SpringBootApplication(scanBasePackages = "com.woniuxy")
@EnableEurekaClient
@EnableFeignClients(basePackages = "com.woniuxy.commons.service")
public class AuthApplication {

  public static void main(String[] args) {
    SpringApplication.run(AuthApplication.class, args);
  }
}
